package cn.ject.mcpclient.base;

import cn.ject.mcpclient.config.AssistantInit;
import cn.ject.mcpclient.service.Assistant;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RequestMapping("api/chat")
@RestController
@RequiredArgsConstructor
public class Chat {

    final Assistant assistant;

    @GetMapping("high")
    public String chat(String message) {
        return assistant.chat(message);
    }

}
